using Microsoft.AspNetCore.SignalR;
using Newtonsoft.Json;
using server.Models;
using System;
using System.Threading.Tasks;

namespace server.Hubs
{
	public class QuestionHub : Hub
	{
		public void UpdatePresence(UpdatePresenceInput input)
        { 
			Console.WriteLine(JsonConvert.SerializeObject(input));
        }

        public override Task OnConnectedAsync()
        {
            base.OnConnectedAsync();
            Clients.Caller.SendAsync("connected", Context.ConnectionId);
            return Task.CompletedTask;
        }
    }
}